<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/menuAplicacionCompania.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateTbldepartamentosTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
           
            <h:form>
                <p:panel id="panel" styleClass="panelCabeza" header="#{bundle.CreateTbldepartamentosTitle}">
                <p:messages id="msgs"/>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateTbldepartamentosLabel_codDepartamento}" for="codDepartamento" />
                    <p:inputText id="codDepartamento" value="#{tbldepartamentosController.selected.codDepartamento}" title="#{bundle.CreateTbldepartamentosTitle_codDepartamento}" required="true" requiredMessage="#{bundle.CreateTbldepartamentosRequiredMessage_codDepartamento}"/>
                    <h:outputLabel value="#{bundle.CreateTbldepartamentosLabel_nomDepartamento}" for="nomDepartamento" />
                    <p:inputText id="nomDepartamento" value="#{tbldepartamentosController.selected.nomDepartamento}" title="#{bundle.CreateTbldepartamentosTitle_nomDepartamento}" required="true" requiredMessage="#{bundle.CreateTbldepartamentosRequiredMessage_nomDepartamento}"/>
                   
                </h:panelGrid>
              
                <p:commandButton action="#{tbldepartamentosController.create}" update="panel" value="#{bundle.CreateTbldepartamentosSaveLink}" />
                
                <p:commandButton action="#{tbldepartamentosController.prepareList}" value="#{bundle.CreateTbldepartamentosShowAllLink}" immediate="true"/>
               </p:panel>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
